package com.mjh.mapper;

import com.mjh.annotaion.DataScope;
import com.mjh.bean.Activity;
import com.mjh.bean.Clue;
import com.mjh.model.BaseQuery;
import com.mjh.vo.ClueVo;
import com.mjh.vo.PieData;

import java.util.List;
import java.util.Set;

/**
* @author ma
* @description 针对表【t_clue(线索表)】的数据库操作Mapper
* @createDate 2025-02-18 15:20:11
* @Entity com.mjh.bean.Clue
*/
public interface ClueMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Clue record);

    int insertSelective(Clue record);

    Clue selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Clue record);

    int updateByPrimaryKey(Clue record);

    @DataScope(tableAlias = "tc",tableField = "owner_id")
    List<ClueVo> selectList(BaseQuery baseQuery);

    void batchInsertClue(List<Clue> cachedDataList);

    ClueVo selectClueDetailInfoById(Integer id);

    int batchDeleteCluesByIds(List<Integer> ids);

    List<PieData> selectNotewayList();

    Set<ClueVo> selectNameList();
}
